using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FrameWork.Language
{
    public enum LanguageType
    {
        /// <summary>
        /// 简体中文
        /// </summary>
        [Description("简体中文")]
        [LanguageFile("zh-cn")]
        ZhCn = 0,
        /// <summary>
        /// English
        /// </summary>
        [Description("English")]
        [LanguageFile("en")]
        En = 1,
        /// <summary>
        /// English
        /// </summary>
        [Description("繁体中文（台湾）")]
        [LanguageFile("zh-tw")]
        ZhTw = 2,
    }

    public class LanguageFileAttribute : Attribute
    {
        public string FileName { get; set; }

        public LanguageFileAttribute(string fileName)
        {
            this.FileName = fileName;
        }
    }
}
